home *** CD-ROM | disk | FTP | other *** search
File List | 1986-10-25 | 4.6 KB | 137 lines |
- The Microsoft MACRO Assembler , Version 1.25 Page 1-1
- 10-25-86
-
-
- C include /h/model.h
- C ; define big or small model for library a
- ssembly code
- C
- = 0000 C FALSE equ 0 ;for small model
- = 0001 C TRUE equ 1 ;for big model
- C
- = C @bigmodel equ FALSE ;select this for model
- desired
- C
- C else
- C %out SMALL MODEL ASSEMBLY
- C endif
- C include /h/prologue.h
- C .list
-
- public sysint13
-
- 0000 ???? flags dw ?
-
- 0002 sysint13 proc
-
- 0002 55 push bp
- 0003 8B EC mov bp,sp
-
- irp reg,<ax,bx,cx,dx,si,di,ds,es>
- push reg
- endm
- 0005 50 + push ax
- 0006 53 + push bx
- 0007 51 + push cx
- 0008 52 + push dx
- 0009 56 + push si
- 000A 57 + push di
- 000B 1E + push ds
- 000C 06 + push es
-
- 000D 8B 5E 04 mov bx,@ab[bp]
- 0010 8B 07 mov ax,[bx]
- 0012 8B 4F 04 mov cx,4[bx]
- 0015 8B 57 06 mov dx,6[bx]
- 0018 8B 77 08 mov si,8[bx]
- 001B 8B 7F 0A mov di,10[bx]
- 001E 36: 8E 5F 0C mov ds,ss:[12][bx]
- 0022 36: 8E 47 0E mov es,ss:[14][bx]
- 0026 36: 8B 5F 02 mov bx,ss:[2][bx]
-
- 002A 55 push bp
- 002B CD 13 int 13h
- 002D 5D pop bp
-
- 002E 9C pushf
- 002F 2E: 8F 06 0000 R pop flags
- The Microsoft MACRO Assembler , Version 1.25 Page 1-2
- 10-25-86
-
-
-
- 0034 53 push bx
- 0035 8B 5E 06 mov bx,@ab[2][bp]
-
- 0038 8F 47 02 pop [2][bx]
- 003B 36: 8C 47 0E mov ss:[14][bx],es
- 003F 36: 8C 5F 0C mov ss:[12][bx],ds
- 0043 89 07 mov [bx],ax
- 0045 89 4F 04 mov 4[bx],cx
- 0048 89 57 06 mov 6[bx],dx
- 004B 89 77 08 mov 8[bx],si
- 004E 89 7F 0A mov 10[bx],di
-
- irp reg,<es,ds,di,si,dx,cx,bx,ax>
- pop reg
- endm
- 0051 07 + pop es
- 0052 1F + pop ds
- 0053 5F + pop di
- 0054 5E + pop si
- 0055 5A + pop dx
- 0056 59 + pop cx
- 0057 5B + pop bx
- 0058 58 + pop ax
-
- 0059 5D pop bp
- 005A 2E: A1 0000 R mov ax,flags
-
- 005E C3 ret
-
- 005F sysint13 endp
- C include /h/epilogue.h
- C ; end of any assembly code
- C
- 005F C @CODE ENDS
- end
-
- The Microsoft MACRO Assembler , Version 1.25 Page Symbols-1
- 10-25-86
-
-
- Segments and groups:
-
- N a m e Size align combine class
-
- DGROUP . . . . . . . . . . . . . GROUP
- @DATAB . . . . . . . . . . . . . 0000 PARA PUBLIC 'DATAB'
- @DATAC . . . . . . . . . . . . . 0000 BYTE PUBLIC 'DATAC'
- @DATAI . . . . . . . . . . . . . 0000 BYTE PUBLIC 'DATAI'
- @DATAT . . . . . . . . . . . . . 0000 BYTE PUBLIC 'DATAT'
- @DATAU . . . . . . . . . . . . . 0000 BYTE PUBLIC 'DATAU'
- @DATAV . . . . . . . . . . . . . 0000 BYTE PUBLIC 'DATAV'
- @CODE. . . . . . . . . . . . . . 005F BYTE PUBLIC 'CODE'
-
- Symbols:
-
- N a m e Type Value Attr
-
- FALSE. . . . . . . . . . . . . . Number 0000
- FLAGS. . . . . . . . . . . . . . L WORD 0000 @CODE
- SYSINT13 . . . . . . . . . . . . N PROC 0002 @CODE Global Length =005D
- TRUE . . . . . . . . . . . . . . Number 0001
- @AB. . . . . . . . . . . . . . . Number 0004
- @BIGMODEL. . . . . . . . . . . . Alias FALSE
- @COMFILE . . . . . . . . . . . . Number 0000
- @IB. . . . . . . . . . . . . . . L BYTE 0000 @DATAI
- @IW. . . . . . . . . . . . . . . L WORD 0000 @DATAI
- @SB. . . . . . . . . . . . . . . L BYTE 0000 @DATAC
- @SW. . . . . . . . . . . . . . . L WORD 0000 @DATAC
- @UB. . . . . . . . . . . . . . . L BYTE 0000 @DATAU
- @UW. . . . . . . . . . . . . . . L WORD 0000 @DATAU
-
- Warning Severe
- Errors Errors
- 0 0
-